
{if !empty($theme.params.sidebarBlocks)}         
  <div class="buttonAction buttonShowSidebar">
    <a href="javascript:void(0);" onclick="toggleSidebar('ContentPhoto','sidebar'); return false;" 
       title="{g->text text="Show Sidebar"}"></a>
  </div>
{/if}
{if (isset($links) || isset($theme.itemLinks))}
        {if !isset($links)}
          {assign var="links" value=$theme.itemLinks}
        {/if}
        {foreach from=$links item=itemLink}
          {if $itemLink.moduleId == "slideshow"}
            <div class="buttonAction buttonViewSlideshow"><a href="{g->url params=$itemLink.params}"
                 title="{$itemLink.text}"></a>
            </div>
         {/if}
        {/foreach}

        {foreach from=$links item=itemLink}
          {if $itemLink.moduleId == "comment"}
                {if $itemLink.params.view == "comment.AddComment" }
                  <div class="buttonAction buttonAddComment">
                    <a href="{g->url params=$itemLink.params}" title="{$itemLink.text}"></a>
                  </div>
                {elseif $itemLink.params.view == "comment.ShowAllComments"}
                  <div class="buttonAction buttonViewComments"><a href="{g->url params=$itemLink.params}"
                       title="{$itemLink.text}"></a>
                  </div>
                {/if}
         {/if}
        {/foreach}                

        {foreach from=$links item=itemLink}
          {if $itemLink.moduleId == "cart"}
                <div class="buttonAction buttonCart">
                  <a href="{g->url params=$itemLink.params}" title="{$itemLink.text}"></a>
                </div>
         {/if}
        {/foreach}  
{/if}

{if $theme.params.navigatorPhotoTop == false}
        {if $theme.params.photoProperties}
          {foreach from=$theme.params.photoBlocks item=block}
            {if $block.0 == 'exif.ExifInfo'}
              {if empty($item)} {assign var=item value=$theme.item} {/if}

              {* Load up the EXIF data *}
              {g->callback type="exif.LoadExifInfo" itemId=$item.id}

              {if !empty($block.exif.LoadExifInfo.exifData)}
                <div class="buttonAction buttonExif"><a href="javascript:void(0);" onclick="toggleExif('photo','exif'); return false;" 
                     title="{g->text text="Photo Properties"}"></a>
                </div>
              {/if}
            {/if}
          {/foreach}
        {/if}
          
        {if $theme.params.fullSize }
             {if !empty($theme.sourceImage)}
                {capture name="url"}
                  {g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.sourceImage.id`"}
                {/capture}
                  <div class="buttonAction buttonPopup">
                    <a href="{$smarty.capture.url}" title="{g->text text="Full Size"}"></a>
                  </div>
            {/if}
        {/if}
{/if}

